<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>validate</title>
</head>
<body>

	<form action="/foo/validate" method="post" enctype="multipart/form-data">
		<p><textarea name="con"></textarea><span>{{ err1 }}</span></p>
		<p><input type="checkbox" name="checkbox" value="1">男</p>
		<p><input type="checkbox" name="checkbox" value="2">女<span>{{ err2 }}</span></p>
		<p><input type="file" name="file"><span>{{ err3 }}</span></p>
		<p><input type="submit" value="submit"></p>
	</form>

	<div>
		<h3>提交结果：</h3>
		<p>01{{ ret1 }}</p>
		<ul>
			<li>02</li>
			{% for i in ret2 %}
			<li>{{ i }}</li>
			{% end %}
		</ul>
		<p>03<img src="/{{ ret3 }}" ></p>

	</div>

</body>
</html>